<template>
  <div id="app">
    <el-image
      style="width: 500px; height: 500px"
      :src=shuLog
      fit="cover">
    </el-image>
  </div>
</template>

<script>
import {getCode} from "@/api/tasks/code";

export default  {
  name:  'app',
    data(){
      return {
        shuLog: require('@/assets/images/code.png'),
      }
    },
  methods: {
    getCode(){
      getCode().then(response => {
        this.$modal.msgSuccess("成功");
      }).catch(reason => {
        this.$modal.msgError("失败");
      });
    }
  },

  mounted() {
    this.getCode();
  }
}
</script>
